package bertyprotocol

import "html/template"

var templateAuthTokenServerRedirect = template.Must(template.New("redirect").Parse(`<!DOCTYPE html>
<html lang="en-GB">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Redirect</title>
    <script>
      location.href = "{{.URL}}";
    </script>
  </head>
  <body>
    <div
      style="display: flex; align-items: center; justify-content: center; height: 100vh"
    >
      <a
        style="text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-weight: 600; color: white; border-radius: 10px; background-color: #404148; padding: 10px 17px; display: flex; align-items: center; justify-content: center;"
        href="{{.URL}}"
      >
        REDIRECT
      </a>
    </div>
  </body>
</html>
`))

// nolint:gosec
var templateAuthTokenServerAuthorizeButton = `<!DOCTYPE html>
<html lang="en-GB">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Connect</title>
  </head>
  <body>
    <form
      method="POST"
      style="display: flex;  align-items: center; justify-content: center; height: 100vh"
    >
      <button
        style="border: none; border-radius: 10px; background-color: #525BEC; padding: 10px 17px; display: flex; align-items: center; justify-content: center;"
        type="submit"
      >
        <img
          alt="Icon"
          style="margin-right: 17px"
          src=""
        />
        <span
          style="font-family: Verdana, Geneva, sans-serif; font-weight: 600; color: white;"
          >CONNECT</span
        >
      </button>
    </form>
  </body>
</html>
`
